package gameserver.model.account;

import java.sql.Timestamp;
import java.util.List;

import gameserver.model.gameobjects.Item;
import gameserver.model.gameobjects.player.PlayerCommonData;

public class PlayerAccountData
{
	private PlayerCommonData playerCommonData;

	private List<Item> equipment;
	private Timestamp creationDate = null;
	private Timestamp deletionDate = null;

	public PlayerAccountData(PlayerCommonData playCommonData,
			List<Item> equipment)
	{
		this.playerCommonData = playCommonData;
		this.equipment = equipment;
	}

	public Timestamp getCreationDate()
	{
		return creationDate;
	}


	public void setDeletionDate(Timestamp deletionDate)
	{
		this.deletionDate = deletionDate;
	}


	public Timestamp getDeletionDate()
	{
		return deletionDate;
	}

	
	public int getDeletionTimeInSeconds()
	{
		return deletionDate == null ? 0 : (int) (deletionDate.getTime() / 1000);
	}

	public PlayerCommonData getPlayerCommonData()
	{
		return playerCommonData;
	}

	public void setPlayerCommonData(PlayerCommonData playerCommonData)
	{
		this.playerCommonData = playerCommonData;
	}

	public void setCreationDate(Timestamp creationDate)
	{
		this.creationDate = creationDate;
	}

	public List<Item> getEquipment()
	{
		return equipment;
	}

	public void setEquipment(List<Item> equipment)
	{
		this.equipment = equipment;
	}
}
